TsgDXFViewport
Unit: DXFConv
Description
This class defines an area in paper space that contains a view of model space. Viewports are treated as drawing objects which display views and can be moved or resized. Any entity can be the boundary of the Viewport.
Syntax
TsgDXFViewport = class(TsgDXFPenEntity)
Properties
Properties | Description |
---|---|
BackClipPlane | The property specifies Z-coordinate of back cut off plane. |
ClippingBoundaryHandle | The property presents only if viewport is non-rectangular. |
Flags | See DXF Reference, for example: Flags = 131072 (0x20000) - Turns the viewport off). |
FrontClipPlane | The property sets and gets the list of layers forbidden for showing in viewport. |
FrozenLayers | The property specifies Z-coordinate of front cut off plane. |
MSpaceCenter | The property is coordinates of model view area center in model coordinates, which displayed in view port. |
MSpaceHeight | The property is the model view area height represents in model units. |
OrdIndex | The property is descendant of the TsgDXFGroup class. |
PSpaceCenter | The property sets and gets center point. |
[PSpaceHeight ]/Reference/CAD%20database%20structure/Entities/TsgDXFViewport/(Properties/PSpaceHeight) | The property sets and gets height in paper space units. |
PSpaceWidth | The property sets and gets width in paper space units. |
Rect | The property calls this property for obtain view port boundary. |
StatusField | |
ThisID | The property sets or gets viewport ID. |
ViewDirection | The property sets and gets view direction vector. |
ViewTarget | The property sets and gets view taret point. |
ViewTwistAngle | The property sets and gets view twist angle. |
VisibleBoundary | The property sets visibility of the boundary. |
XDataAppName | The property sets or gets the application name. |
Derived from TsgDXFPenEntity | Description |
---|---|
Pen | The property for reaching the TPen object, used for drawing. |
Derived from TsgDXFEntity | Description |
---|---|
Box | The property determines the 3d box embraced the entity. |
Color | The property gets or sets entity color. |
ColorCAD | The property gets or sets a color for drawing entities. |
Complex | The property determines whether a entity is populated with child entities. |
Converter | The property returns the TsgDXFConverter class object. |
Count | The property indicates the total number of child entities. |
Entities | The property lists all child entities. |
EntType | The property indicates type of an entity. |
Handle | The property is used for finding entity links. |
Layer | The property points to layer, containing given primitive if this layer is given. |
LineType | The property sets and gets line type for an entity. |
LineTypeScale | The property sets and gets the Linetype scale. |
LineWeight | The property sets or gets line weight in millimeters. |
PaperSpace | The property indicates Model Space and Paper Space entity segregation. |
SrcEnd | The property indicates end position of the entity description in the source CAD file. |
SrcStart | The property indicates start position of the entity description in the source CAD file. |
Visibility | The property sets and gets entities visibility. |
Visible | The property determines whether the component appears onscreen. |
Methods
Methods | Description |
---|---|
Create | Creates an instance of the TsgDXFViewport object. |
Destroy | Frees up all internal objects before destroying this object. |
GetBoundary | The method returns the boundary of the Viewport as the TsgDXFEntity object. |
GetBoundariesAsPoints | The method returns the boundary of viewport entity as list of points. |
Offset | The method sets the center point of viewport. |
SetBoundary | The method sets the boundary of the viewport as entity. |
Derived from TsgDXFPenEntity | Description |
---|---|
AssignEntity | The method copies properties of source entity to current entity. |
SetColor | The method changes the color used for drawing. |
Derived from TsgDXFEntity | Description |
---|---|
AddEntity | The method adds a new child entity. |
Clone | The method copies properties of source entity to current entity (include Handle ). |
Draw | The method generates the OnDraw event. |
EntName | The method returns an entity name. |
GetBoxPoints | The method is used in drawing cycle for fast checking whether the entity must be drawn. |
GetThickness | The method returns entity's thickness. |
SetLType | The method sets line type of the entity. |
SetLWeight | The method sets line weight width of the entity. |
Events
Derived from TsgDXFEntity | Description |
---|---|
OnDraw | The event occurs when the Draw method is called. |